/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.scalia.meteocal.entity;

/**
 *
 * @author gabriele
 */
public enum WeatherType {
    CLEAR_SKY("Clear sky", false), FEW_CLOUDS("Few clouds", false), SCATTERED_CLOUDS("Scattered clouds", false), BROKEN_CLOUDS("Broken clouds", true), SHOWER_RAIN("Shower rain", true),
    RAIN("Rain", true), THUNDERSTORM("Thunderstorm", true), SNOW("Snow", true), MIST("Mist", true);
    
    private String name;
    private boolean badWeatherDefault;
    
    WeatherType(String name, boolean badWeatherDefault) {
        this.name = name;
        this.badWeatherDefault = badWeatherDefault;
    } 

    public String getName() {
        return name;
    }

    public boolean isIsBadWeatherDefault() {
        return badWeatherDefault;
    }
    
    public static String[] getStringWeatherTypes() {
        String[] stringWeatherTypes = new String[WeatherType.values().length];
        for (int i=0; i< stringWeatherTypes.length; i++) {
            stringWeatherTypes[i] = WeatherType.values()[i].name;
        }
        return stringWeatherTypes;
    }
   
}
